Post

Replies

Boosts

Views

Activity

Reply to Xcode 11.4 issue: iOS xibs do not support target device type "iphone"
I came across the problem when I created a xib inside an spm package, it seems like that Xcode uses a broken xib template. I resolved the issue by opening the xib as source and replacing the document and device tag with the following code: <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">     <device id="retina4_7" orientation="portrait" appearance="light"/>
Sep ’21